package com.emar.spring.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emar.spring.dao.RecodeDao;
import com.emar.spring.dto.ParamsDTO;

@Service
public class RecodeService {

	@Autowired
	private RecodeDao recodeDao;
	
	public List<ParamsDTO> getDtoList(ParamsDTO pe ,String groupBy, int pageNumber,int pageSize){
		return recodeDao.getProjectDTOList(pe, groupBy, pageNumber, pageSize);
	}

	public List<ParamsDTO> getProjectDTOCountList(ParamsDTO pe ,String groupBy){
		return recodeDao.getProjectDTOCountList(pe, groupBy);
	}
	
	public List<ParamsDTO> getDtoPageList(ParamsDTO pe ,String groupBy, int pageNumber,int pageSize){
		return recodeDao.getProjectDTOPageList(pe, groupBy, pageNumber, pageSize);
	}
	
	public int getCount(ParamsDTO pe ,String groupBy){
		return recodeDao.getRecodeCount(pe, groupBy);
	}
	
	public int getRecodeCountGroup(ParamsDTO pe ,String groupBy){
		return recodeDao.getRecodeCountGroup(pe, groupBy);
	}
	
}
